package com.cj.webapp.user.dao;

import com.cj.webapp.user.dto.UserDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.userdetails.User;

import java.util.List;

/**
 * Created by dell on 2018/1/12.
 */
public interface UserMapper {
     //根据名字查询用户信息
     UserDto findUserByName(UserDto userDto);
     //根据ID查询用户信息
     UserDto findUserById(@Param("entity") UserDto userDto);
     //t通过手机号查询用户信息
     List<UserDto> findUserByPhone(@Param("entity") UserDto userDto);
     //插入数据
     int addUser(@Param("entity") UserDto userDto);

}
